<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const products = [
        {
          id: 1,
          price: 9.99,
          name: "商品1",
          imageUrl: "https://example.com/images/product1.jpg",
          shippingAddress: "收货地址1",
          byStatus: false,
        },
        {
          id: 2,
          price: 19.99,
          name: "商品2",
          imageUrl: "https://example.com/images/product2.jpg",
          shippingAddress: "收货地址2",
          byStatus: true,
        },
        {
          id: 3,
          price: 29.99,
          name: "商品3",
          imageUrl: "https://example.com/images/product3.jpg",
          shippingAddress: "收货地址3",
          byStatus: true,
        },
      ]
      const products2 = [
        {
          id: 4,
          price: 9.99,
          name: "商品1",
          imageUrl: "https://example.com/images/product1.jpg",
          shippingAddress: "收货地址1",
          byStatus: false,
        },
        {
          id: 5,
          price: 19.99,
          name: "商品2",
          imageUrl: "https://example.com/images/product2.jpg",
          shippingAddress: "收货地址2",
          byStatus: true,
        },
        {
          id: 6,
          price: 29.99,
          name: "商品3",
          imageUrl: "https://example.com/images/product3.jpg",
          shippingAddress: "收货地址3",
          byStatus: true,
        },
      ]
      // const flag = products.every((item) => {
      //   console.log(123)
      //   return item.byStatus === true
      // })
      // console.log(flag)

      // products.reverse()
      // console.log(products);

      // const newarr=products2.concat(products)
      // console.log(newarr);

      
    </script>
  </body>
</html>
